{% extends "orga/base.html" %}

{% load i18n %}

{% block extra_title %}{% translate "New event" %} :: {% endblock extra_title %}

{% block content %}
    <form method="post"><fieldset>
        <legend>
            <span>
                {% translate "New event" %}
                <small class="text-muted">{% blocktranslate with total=wizard.steps.count current=wizard.steps.step1 trimmed %}
                    Step {{ current }} of {{ total }}
                {% endblocktranslate %}</small>
            </span>
        </legend>
        {% block wizard_content %}{% endblock wizard_content %}
        {% csrf_token %}
        {{ wizard.management_form }}
        {% block wizard_form %}
            {{ wizard.form }}
        {% endblock %}
        <div class="submit-group flex-row-reverse">
            <button type="submit" class="btn btn-success btn-lg float-right flip ml-auto">{% translate "Next step" %}</button>
            {% if wizard.steps.prev %}
                <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="btn btn-lg btn-info">{% translate "Previous step" %}</button>
            {% else %}
                <span></span>
            {% endif %}
        </div>
    </fieldset></form>
{% endblock content %}
